package com.yhq.spring.lifecycle.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author hqyin
 * @date 2023/4/24 4:59 下午
 */
@PropertySource("classpath:test.properties")
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "test1")
@Component
@Data
public class TestProperties {
    private String leader;
    private String employee;
}
